package gov.pr.celepar.sentinela.admin.facade;

import gov.pr.celepar.sentinela.admin.dao.AuditoriaControleDAO;
import gov.pr.celepar.sentinela.admin.dao.factory.DAOFactoryServer;
import gov.pr.celepar.sentinela.admin.excecao.SentinelaServerException;
import gov.pr.celepar.sentinela.admin.pojo.AuditoriaControle;

import java.util.Collection;

public class AuditoriaControleFacade {

	public static Collection<AuditoriaControle> listarBySistema(Long codSistema)
			throws SentinelaServerException, Exception {
		AuditoriaControleDAO auditDao = DAOFactoryServer.getDAOFactory()
				.getAuditoriaControleDAO();
		Collection<AuditoriaControle> auditorias = auditDao
				.listarAuditoriaControle(codSistema);

		return auditorias;
	}
}
